﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Metro.Kashikoi.ServiceContract.Location;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;

namespace Metro.Kashikoi.ServiceContract.Security
{
   [DataContract(IsReference = true)]
   public class UserBase
    {
       [DataMember]
       [Key]
       public int Id { get; set; }

       [DataMember]
       [StringLength(255, MinimumLength = 1)]
       [StringLengthValidator(1, 255)]
       public string Login { get; set; }

       [DataMember]
       [StringLength(255, MinimumLength = 1)]
       [StringLengthValidator(1, 255)]
       public string Password { get; set; }

       //[DataMember]
       //public virtual ICollection<UserGroup> UserGroups { get; set; }

       //[DataMember]
       //public virtual ICollection<Region> Regions { get; set; }

       public UserBase() { }
    }
}
